﻿using RAP.Framework.Libary.DomTemplateBuilder.Element;
using RAP.Framework.Libary.DomTemplateBuilder.Interface;
using System;
using System.Text;

namespace RAP.Framework.Libary.DomTemplateBuilder
{
	public interface IHandler : IDisposable
    {
        /// <summary>
        /// 
        /// </summary>
        ElementBase Element { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="writer"></param>
        /// <param name="rootParamObject"></param>
        /// <param name="parentParamObject"></param>
        /// <param name="context"></param>
        void DoRender ( StringBuilder writer, object rootParamObject, object parentParamObject, ITemplateRenderContext context );
    }
}
